#include<iostream>
#include<string>
#include<vector>
using namespace std;

//void addstr(string &s, const string &prefix, const string &suffix)
//{
//	if (prefix.empty() || suffix.empty()) return;
//	auto begin = s.begin();
//	s.insert(begin, prefix.begin(), prefix.end());
//	s.append(suffix);
//}

void addstr(string& s, const string& prefix, const string& suffix)
{
	if (prefix.empty() || suffix.empty()) return;
	s.insert(0, prefix);
	s.insert(s.size(), suffix);
}

int main()
{
	//string name = "james";
	//string prefix = "Mr.";
	//string suffix = "III";
	//addstr(name, prefix, suffix);
	//cout << name << endl;

	//string s = "ab2c3d7R4E6";
	//string numbers = "0123456789";
	//string::size_type pos = 0;
	//while (pos != s.size())
	//{
	//	pos = s.find_first_of(numbers, pos);
	//	if (pos == string::npos) break;
	//	cout << pos << " : " << s[pos] << endl;
	//	++pos;
	//}
	//pos = 0;
	//while ((pos = s.find_first_of(numbers, pos)) != string::npos)
	//{
	//	cout << pos << " : " << s[pos] << endl;
	//	++pos;
	//}
	/*pos = 0;*/
	//while (pos != s.size())
	//{
	//	pos = s.find_first_not_of(numbers, pos);
	//	if (pos == string::npos) break;
	//	cout << pos << " : " << s[pos] << endl;
	//	++pos;
	//}


	//string word;
	//const string updown = "tidfhjklbqypg";
	//unsigned maxword = 0;
	//while (cin >> word)
	//{
	//	string::size_type lastpos = 0;
	//	string::size_type newpos = 0;
	//	while (newpos != word.size())
	//	{
	//		newpos = word.find_first_of(updown, newpos);
	//		if (newpos == string::npos) break;
	//		maxword = (maxword < newpos - lastpos - 1) ? (newpos - lastpos - 1) : maxword;
	//		lastpos = newpos;
	//		newpos++;
	//	}
	//}
	//cout << maxword << endl;


	vector<string> v = { "1", "2" , "3", "4", "5", "6" };
	int sumi = 0;
	double sumd = 0.0;
	for (auto c : v)
	{
		sumi += stoi(c);
		sumd += stod(c);
	}
	cout << sumi << endl;
	cout << sumd << endl;

	return 0;
}